<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
<!--自动检测屏幕大小-->		
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">		
		
		<title></title>
		<link rel="stylesheet" type="text/css" href="js/bootstrap.css"/>
		<script src="js/jquery-3.2.0.min.js"></script>
		<script src="js/bootstrap.js"></script>
		
		<style type="text/css">
			body{
				position: relative;
			}
			
			.col-md-1{
				position: fixed;
				top: 50%;
			}
		</style>
		
		
	</head>
	<body >
		
		<div class="container row">
			<div class="col-md-1">
		
				<div class="navbar-example">
		    <!-- 导航 a中href="#one" 来寻找锚点-->
				    <ul class="nav nav-pills nav-stacked" role="tablist">
				      <li role="presentation" class="active"><a href="#one">one</a></li>
				      <li role="presentation"><a href="#two">two</a></li>
				      <li role="presentation"><a href="#three">three</a></li>
				    </ul>
				</div>
				
			</div>
			
			
			
			
			<div class="col-md-11 pull-right" style="padding-top: 100px;">
				
				<div data-spy="scroll" data-target=".navbar-example" data-offset="150" style="position:relative ;height:500px; overflow:auto ;">
				  <h3 id ="one">one</h3>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <p>oneoneoneoneone</p>
				  <h3 id ="two">two</h3>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <p>twotwotwotwotwo</p>
				  <h3 id ="three">three</h3>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>  
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				  <p>threethreethree</p>
				</div>
			</div>
		
		
		</div>
	</body>
</html>
